package com.example.shardingjdbc.shardingMapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.shardingjdbc.model.Order;
import org.apache.ibatis.annotations.Mapper;

@Mapper
@DS("sharding")
public interface OrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
}